import Request from './requset'

let request = new Request().http

function get(url, data, whetherData = true, hideLoading, header){
	return request({
		url,
		method:'get',
		data,
		whetherData,
		hideLoading,
		header
	})
}

function post(url, data, whetherData = true, hideLoading, header){
	return request({
		url,
		method:'post',
		data,
		whetherData,
		hideLoading,
		header
	})
}

let api = {
	geturltest:(data)=>get("/login/details"),
	updataImg:data=>post("/updataImg",data),
	login:data=>post("/login",data),
	exit:data=>post("/exit",data)
}

export default api